//
//  AXMyOrderdetailCell.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/10/25.
//  Copyright © 2018年 tzhg. All rights reserved.
//

#import "AXMyOrderdetailCell.h"
#import "UIView+SDAutoLayout.h"
#import "ZXCategories.h"

@implementation AXMyOrderdetailCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
      
        [self creatView];
        [self setlayout];
        
    }
    
    return self;
}

- (void)creatView {
    
    self.nameLabel = [[UILabel alloc]init];
    self.nameLabel.textColor = COLOR_DIV;
    self.nameLabel.font = FONT_FOURTEEN;
    [self.contentView addSubview:self.nameLabel];
    
    self.contentLabel = [[UILabel alloc]init];
    self.contentLabel.textAlignment = NSTextAlignmentRight;
    self.contentLabel .textColor = COLOR_DIV;
    self.contentLabel .font = FONT_FOURTEEN;
    [self.contentView addSubview:self.contentLabel ];
    
    
}

- (void)setlayout {
    
    self.nameLabel.sd_layout
    .leftSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 10)
    .widthIs(80)
    .heightIs(BTN_HEIGHT);
    
    self.contentLabel.sd_layout
    .rightSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 10)
    .widthIs(SCREEN_WIDTH-110)
    .heightIs(BTN_HEIGHT);
    
}

@end
